/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DigimonAdventure.Database;

import javax.swing.ImageIcon;

/**
 *
 * @author Benz Louis
 */
public enum Acc implements Sellable{
	//identifier (name ,modV, modS1, modR, modS1, price, desc, val)
	//modifier bukan persen namun nilai
	//identifier adalah nama program buat si item
	//name adalah nama alias yang bakal terbaca di sistem ntar
	//modV berarti nambahin vitality (convert ke HP), modS1 nambahin strength (convert ke attack), dst
	//price berarti harga beli di shop (harga jual = harga beli/2)
    //desc = deskripsi item yang bakal ditampilin di inventory dialog
    //val = "nilai" item yang akan ditampilin di inventory dialog

	None ("-Empty Slot-",0,0,0,0,0,"This slot is empty...","N/A","/DigimonAdventure/Graphics/Acc1.gif"),

	/**Acc - Accesories, +all stat*/
	Acc1 ("Gleamstone",50,20,20,10,500,"A stone gleaming with energy","Minor boost to all stats","/DigimonAdventure/Graphics/Acc1.gif"),
	Acc2 ("Soulstone",200,75,75,30,2000,"A stone believed to strengthen one's Soul","Moderate boost to all stats","/DigimonAdventure/Graphics/Acc2.gif"),
	Acc3 ("Myrrh's Core",500,200,200,100,7000,"The core of the legendary creature, Myrrh","Major boost to all stats","/DigimonAdventure/Graphics/Acc3.gif");

	private String name;
	private int modV;
	private int modS;
	private int modR;
	private int modA;
	private int price;
    private String desc;
    private String val;
    private String imageLoc;
    private ImageIcon icon;

    Acc(String name,int modV,int modS,int modR,int modA,int price, String desc, String val, String imageLoc){
		this.name = name;
		this.modV = modV;
		this.modS = modS;
		this.modR = modR;
		this.modA = modA;
        this.price = price;
        this.desc = desc;
        this.val = val;
        this.imageLoc = imageLoc;
	}
	//kasih getter juga
	public String getName(){
		return name;
	}
	public int getModV() {
		return modV;
	}
	public int getModS() {
		return modS;
	}
	public int getModR() {
		return modR;
	}
	public int getModA() {
		return modA;
	}
    public int getPrice() {
        return price;
    }
    public String getDesc(){
        return desc;
    }
    public String getVal(){
        return val;
    }
    public String getImageLocation(){
        return imageLoc;
    }
    public ImageIcon getIcon(){
        return new ImageIcon(getClass().getResource(this.getImageLocation()));
    }
}
